﻿1857.1.1 = {
	capital = 804

	oob = "SPR_1857"
	set_naval_oob = "SPR_1857_naval_mtg"
	set_technology = {
		tech_naval_mtg_24_pounder_battery = 1
		tech_naval_mtg_sails = 1
		tech_naval_mtg_crows_nest = 1
	}

	set_convoys = 50

	set_research_slots = 2
	
	add_to_variable = { prestige_score = 20 }

	### Economy
    add_ideas = generic_unemployment_idea
    set_variable = { unemployment_value_modifier = 0.1 }
    set_variable = { current_unemployment = 0.05 }
    clamp_variable = {
        var = current_unemployment
        min = 0
        max = 1
    }
    update_unemployment_modifier = yes
    add_to_variable = { money = 12 }
	set_variable = { current_loans_sum = 142 }

	add_ideas = {
		#POLITICS
		SPR_Isabella_II
		#weak_heir
		agrarian
		victorian_era
		doctrine_napoleonic_army_1
		#religion_catholic

		#GOVERNMENTAL POLICIES
		#parliamentary_monarchy
		#human_rights
		limited_elections
		#no_separation
		#federal_control

		#CULTURE AND EDUCATION
		privileged_education
		state_religion
		free_press
		foa_non_socialist
		tu_non_political
		high_judge_courtroom

		#ECONOMY
		limited_exports
		taxation_level_1
		cl_legal
		
		
		civilian_economy

		#DEMOGRAPHICS
		#stagnation_growth
		border_control
		racial_laws
		property_owners_suffrage
		volunteer_only
		pp_ban_extremist_parties

		#BUDGET
		social_spending_level_1
		law_spending_level_4
		road_spending_level_1
		navy_spending_level_3
		army_spending_level_3
		research_spending_level_1

		#NATIONAL SPIRITS
		SPR_pragmatica_sancion
		SPR_a_divided_country
		SPR_the_carlist_threat
		SPR_the_madozs_confiscation
	}

	# Diplo

		#Rivals
		set_variable = { rival_country = MOR.id }
	#Most Favoured Country
		set_variable = { most_favoured_country = POR.id }

	give_guarantee = ADR



	set_politics = {
		ruling_party = traditional_conservatism
		election_frequency = 48
		elections_allowed = no
	}

	set_popularities = {
		anarchism = 5
		ideology_social_liberalism = 0
		ideology_radical_socialism = 0
		social_egalitarianism = 15
		centrism = 35
		traditional_conservatism = 30
		radical_democracy = 5
		chauvinist_populism = 0
		autocracy = 10
		fundamentalism = 0
	}

	set_technology = {
		infantry_weapons = 1 traditional_mixed_arms = 1
		tribal_carrier_birds = 1 tribal_electrical_theory = 1
		tribal_steel_tools = 1
		tribal_tatics = 1
		tribal_gunpowder = 1
		tribal_riding = 1
		tribal_steam_experiments = 1
		tribal_forging = 1
		tribal_artisan = 1
		tribal_chemistry = 1
		tribal_guilds_trade = 1
		tribal_crop_planting = 1
		tribal_irrigation = 1
		tribal_crop_rotation = 1
		tribal_salted_smoked_goods = 1
		tribal_leching = 1
		tech_infantry_flintlock_pistol = 1
		tech_infantry_caplock_pistol = 1
		 
		rifle_equipment1 = 1
		hand_revolvers = 1
		tech_infantry_infantry_swords = 1
		socket_bayonet = 1
		tech_infantry_napoleonic_uniform = 1
		vic_army_cloth = 1
		civil_army_cloth = 1
		basic_cavalry = 1
		horse_transport = 1
		horse_artillery = 1
		mounted_infantry = 1
		tech_support = 1
		tech_engineers = 1
		tech_naval_early_gunboat = 1
		tech_naval_1850_gunboat = 1
		tech_naval_corvette = 1
		tech_naval_mtg_1857_corvette_hull = 1
		tech_naval_early_frigate = 1
		tech_naval_1850_frigate = 1
		tech_naval_mtg_hardwood_capital_ship_hulls = 1
		tech_naval_lineship = 1
		tech_naval_1857_lineship = 1
		tech_naval_mtg_24_pounder_battery = 1
		tech_naval_mtg_32_pounder_battery = 1
		tech_naval_mtg_rml_battery = 1
		tech_naval_mtg_paddle_wheels = 1
		tech_naval_mtg_steam_driven_single_screw_propeller = 1
		tech_naval_capital_ship_naval_transportation = 1
		tech_naval_1850_frigate = 1
		tech_naval_lineship = 1
		tech_naval_mtg_repair_crews = 1
		tech_naval_mtg_merchant_ship_requisitioning = 1
		tech_naval_capital_ship_naval_transportation = 1
		tech_naval_corvette = 1
		tech_naval_early_frigate = 1		
		tech_infantry_special_infantry_corps = 1
		tech_infantry_colonial_marines = 1
		gw_artillery = 1
		rml_field_gun = 1
		iron_railways = 1
		steam_engine = 1
		manufactories = 1
		hot_blast_furnaces = 1
		start_build_tech = 1
		food_preserving_icebox = 1
		early_artificial_fertilizer = 1
		electrical_engineering = 1
		mass_transit_early = 1
		steam_locomotive = 1
		basic_train = 1
		tech_infantry_practical_rifling = 1
		improved_matchlock = 1
		tech_camel_cavalry = 1
		improved_cavalry = 1
		specialised_cavalry = 1
		cavalry_recon = 1
		cav_supply = 1
		dragoon_equipment = 1
		tech_infantry_improved_landing_gear = 1
		tech_infantry_navy_revolver = 1
		tech_infantry_standardised_navy_revolver = 1
		tech_infantry_terrain_adaptability = 1
		tech_infantry_specialized_training = 1
		tech_recon = 1
		train_1855 = 1
		armor_tech_velocipede = 1
		early_howitzer = 1 
		improved_smoothbore = 1
		early_rockets = 1
		mongolfiere = 1
		ornithopter = 1
		screw_propeller = 1
		early_balloon = 1
		tech_humanities_metropolitan = 1
		tech_humanities_roadworks = 1
		steel_railways = 1
		early_thermodynamics_theories = 1
		high_speed_steam_engine = 1
		industrial_era_tools_1 = 1
		industrial_blast_furnace = 1
		cast_iron_industrialization = 1
		dry_puddling_process = 1
		industrial_finery_forge = 1
		wrought_iron_industrialization = 1
		inorganic_chemistry = 1
		chemical_vapor_deposition = 1
		refining = 1
		wohler_synthesis = 1
		polymer_chemistry = 1
		early_medicine = 1
		hygiene = 1
		food_canning = 1
		high_phosphate_fertilizer = 1
		pre_industrial_farms = 1
		early_alternators = 1
		early_dynamo_generator = 1
		woolrich_electrical_generator = 1
		voltas_battery = 1
		electrical_telegraph = 1
		daguerreotype = 1
		collodion_process = 1
		pyroglycerine_synthesis = 1
		nitroglycerine = 1
		tech_humanities_mercantilism = 1
		tech_humanities_capitalism = 1
		tech_humanities_saint_simonianism = 1
		tech_humanities_social_stratification = 1
		tech_humanities_workers_rights = 1
		tech_humanities_neo_kantianism = 1
	}

	set_grand_doctrine = grand_doctrine_napoleonic_era
	set_sub_doctrine = napoleonic_light_cavalry_doctrine
	add_mastery = {
		amount = 100
		sub_doctrine = napoleonic_light_cavalry_doctrine
	}
	set_sub_doctrine = napoleonic_heavy_artillery_doctrine
	add_mastery = {
		amount = 100
		sub_doctrine = napoleonic_heavy_artillery_doctrine
	}
	set_sub_doctrine = napoleonic_conservative_doctrine
	
	SPR = {
		add_equipment_to_stockpile = {
			type = train_equipment_1
			amount = 2
			producer = SPR
		}
	}

	add_equipment_to_stockpile = { type = infantry_equipment_rifle_0 amount = 1000 producer = SPR }
	add_equipment_to_stockpile = { type = uniform_equipment_0 amount = 1000 producer = SPR }

	SPR = {
		#Spain's National Debt amounted to 14.3bn Reales (715m Peso/Spanish Dollars = 3.575bn Peseta/Franc as of 1850 exchange rate = 141.7m Pound Sterling as of 1871) at the end of 1859; yearly income roughly 12.4m Pound Sterling = 11.4 GDP of debt
		add_to_variable = { var = SPR_debt_repayment_profits value = 0.5 } #From: CHL, COL, ECU, PRU, VEN
		set_cosmetic_tag = SPR_victorian
	}

	171 = {
		add_dynamic_modifier = { modifier = dynmod_POR_border_dispute }
	}

	# POLITICAL LEADERS
	recruit_character = SPR_Isabella_II
	recruit_character = SPR_leopoldo_odonnell_y_jorris
	recruit_character = SPR_ramon_maria_narvaez
	recruit_character = SPR_baldomero_espartero
	recruit_character = SPR_anselmo_lorenzo
	recruit_character = SPR_cirilo_de_alameda_y_brea
	recruit_character = SPR_arsenio_martinez_campos_y_anton
	recruit_character = SPR_blas_villate
	recruit_character = SPR_domingo_dulce_y_garay
	recruit_character = SPR_joaquin_jovellar
	recruit_character = SPR_juan_prim_y_prats
	recruit_character = SPR_juan_de_zavala
	recruit_character = SPR_antonio_ros_de_olano
	recruit_character = SPR_jose_de_la_gandara_y_navarro
	recruit_character = SPR_juan_bautista_topete
	recruit_character = SPR_casto_mendez_nunez
	recruit_character = SPR_luis_hernandezpinzon_Alvarez
	recruit_character = SPR_juan_bautista_antequera_y_bobadilla
	recruit_character = SPR_claudio_alvargonzalez_sanchez	

	create_equipment_variant = {
		name = "Venus Class"
		type = ship_hull_corvette_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = ship_armor_screen_hardwood_0
			mid_1_custom_slot = empty
			front_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Villa de Bilbao Class"
		type = ship_hull_corvette_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_2
			fixed_ship_armor_slot = ship_armor_screen_hardwood_0
			mid_1_custom_slot = ship_cannon_battery_1
			front_1_custom_slot = ship_cannon_battery_1
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Colón Class"
		type = ship_hull_corvette_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_paddle_screen
			fixed_ship_armor_slot = ship_armor_screen_hardwood_0
			mid_1_custom_slot = empty
			front_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Isabel II Class"
		type = ship_hull_corvette_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_paddle_screen
			fixed_ship_armor_slot = ship_armor_screen_hardwood_0
			mid_1_custom_slot = empty
			front_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Perla Class"
		type = ship_hull_frigate_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_0
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Esperanza Class"
		type = ship_hull_frigate_0
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = ship_armor_capital_hardwood_0
			mid_1_custom_slot = ship_cannon_battery_0
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Bailén Class"
		type = ship_hull_frigate_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_2
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_2
			fixed_ship_armor_slot = ship_armor_capital_hardwood_0
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Petronila Class"
		type = ship_hull_frigate_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_2
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_steam_screw_cruiser
			fixed_ship_armor_slot = ship_armor_capital_hardwood_1
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Princesa de Asturias Class"
		type = ship_hull_frigate_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_2
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_steam_screw_cruiser
			fixed_ship_armor_slot = ship_armor_capital_hardwood_1
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = no
	}
	create_equipment_variant = {
		name = "Reina Doña Isabel II Class"
		type = ship_hull_lineship_1
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_2
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_2
			fixed_ship_armor_slot = ship_armor_capital_hardwood_1
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = ship_cannon_battery_2
			mid_3_custom_slot = ship_cannon_battery_1
			front_1_custom_slot = ship_cannon_battery_1
			front_2_custom_slot = ship_cannon_battery_1
			rear_1_custom_slot = ship_cannon_battery_1
			rear_2_custom_slot = ship_cannon_battery_1
		}
		obsolete = no
	}

	#active construction at game start
	add_equipment_production = {
		equipment = {
			type = ship_hull_frigate_1
			version_name = "Princesa de Asturias Class"
		}
		name = "Princesa de Asturias"
		requested_factories = 1
		progress = 0.9
		amount = 1
	}
	add_equipment_production = {
		equipment = {
			type = ship_hull_frigate_1
			version_name = "Petronila Class"
		}
		name = "Reina Blanca"
		requested_factories = 1
		progress = 0.4
		amount = 1
	}
}